﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@ViewBag.Title - 洋码头 RPC后台管理系统</title>
    <meta name="viewport" content="width=device-width" />
    <script type="text/javascript" src="~/Scripts/jquery.min.js"></script>
    <link rel="stylesheet" href="~/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="~/Content/css/site.css">
    <script src="~/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="/" class="navbar-brand">RPC管理控制台</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul id="navbar-nav" class="nav navbar-nav">
                    <li class="active"><a href="/home/index">服务依赖查询</a></li>
                    <li><a href="/SamplingData/Index">采样数据查询</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            RPC配置<b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="/Config/ClientConfig">查询RPC客户端配置</a></li>
                            <li><a href="/Config/ServiceConfig">查询服务依赖配置</a></li>
                            <li><a href="/ServiceMetadata/Index">查询服务元数据</a></li>
                            <li><a href="/ServiceMetadata/Add">新增服务元数据</a></li>
                        </ul>
                    </li>
                </ul>
                @Html.Partial("_LoginPartial")
            </div>
        </div>
    </div>

    <div class="container body-content">
        @RenderBody()
    </div>

    <script type="text/javascript">
        $(document).ready(function () {

            var requestPath = window.location.pathname;

            $("#navbar-nav > li").each(function () {
                if ($(this).find("a[href='" + requestPath + "']").length > 0)
                    $(this).addClass("active");
                else
                    $(this).removeClass("active");
            });
        });
    </script>
    </body>
    </html>
